PreemptiveAnswer wasn't being used in the case where verification is in
progress and the smartcard is inserted, triggering a reset.
This change ensures a preemptive answer will be used once smartcard
service asks for the PIN.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4306>
(cherry picked from commit
9b78793ead5c3b80e39524c2ed5648798d3c27e7)
this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
this.cancelButton.reactive = this._hasCancelButton;
this.cancelButton.can_focus = this._hasCancelButton;
- this._preemptiveAnswer = null;
+ if (oldStatus !== AuthPromptStatus.VERIFICATION_IN_PROGRESS)
+ this._preemptiveAnswer = null;
if (this._userVerifier)
this._userVerifier.cancel();